package com.aspose.cells;

import java.util.ArrayList;

class zoc {
   boolean a = false;
   int b = 7;
   int c = 1;
   Font d = null;
   String e = null;
   ArrayList f = null;
   Workbook g = null;
   String h = null;
   zpc i = null;

   static zoc a(Title var0, Workbook var1) {
      zoc var2 = new zoc();
      var2.b = var0.getTextHorizontalAlignment();
      var2.c = var0.getTextDirection();
      if (var0.g() != null || var0.h() != -1) {
         var2.d = var0.getFont();
      }

      var2.e = var0.getText();
      if (var0.D() != null && var0.getText() != null) {
         zbar.a(var0.D(), var0.getText().length(), var0.getFont(), true);
         var2.f = var0.D();
      }

      var2.g = var1;
      return var2;
   }

   static zoc a(DataLabels var0, Workbook var1) {
      zoc var2 = new zoc();
      var2.b = var0.getTextHorizontalAlignment();
      var2.c = var0.getTextDirection();
      if (var0.h() != -1) {
         var2.d = var0.getFont();
      } else if (var0.D() != null) {
         var2.d = var0.getFont();
      }

      var2.e = var0.z();
      if (var0.a() != null && var0.z() != null) {
         zbar.a(var0.a(), var0.z().length(), var0.getFont(), true);
         var2.f = var0.a();
      }

      var2.g = var1;
      return var2;
   }

   static zoc a(zbtz var0, Workbook var1) {
      zoc var2 = new zoc();
      var2.b = var0.g();
      var2.d = var0.k();
      var2.e = var0.i();
      var2.f = var0.r();
      var2.g = var1;
      var2.i = var0.f;
      return var2;
   }

   static zoc a(TextBox var0, Workbook var1) {
      zoc var2 = a(var0.aa(), var1);
      if (var0.getLinkedCell() != null) {
         var2.h = "TxLink";
      }

      return var2;
   }

   static zoc a(DisplayUnitLabel var0, Workbook var1) {
      zoc var2 = new zoc();
      var2.b = var0.getTextHorizontalAlignment();
      var2.c = var0.getTextDirection();
      if (var0.h() != -1) {
         var2.d = var0.getFont();
      }

      var2.e = var0.getText();
      var2.g = var1;
      return var2;
   }
}
